<!DOCTYPE html>
<html>
<head>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'vehicle.label', default: 'Vehicle')}"/>
    <title>贷款预警处置</title>
</head>

<body>
<div class="small-header">
    <div class="hpanel">
        <div class="panel-body">
            <div id="hbreadcrumb" class="pull-right">
                <ol class="hbreadcrumb breadcrumb">
                    <li>PLS CINDATA</li>
                    <li class="active">
                        <span>贷款预警</span>
                    </li>
                </ol>
            </div>

            <h2 class="font-light m-b-xs">

            </h2>
        </div>
    </div>
</div>

<g:if test="${flash.message}">
    <div class="message alert alert-info" role="status">${flash.message}</div>
</g:if>
<g:hasErrors bean="${this.menu}">
    <ul class="errors" role="alert">
        <g:eachError bean="${this.menu}" var="error">
            <li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message
                    error="${error}"/></li>
        </g:eachError>
    </ul>
</g:hasErrors>

<div class="content animate-panel">
    <div class="row">
        <div class="hpanel hblue">
            <div class="panel-heading">
                贷款预警处置
            </div>

        <div class="panel-body form-horizontal">
            <!-- <div class="form-group">
                <label class="col-md-2 control-label ">贷款编号</label>
                <div class="col-md-3">
                    <g:textField class="form-control" type="text" name="serialNumber" id="serialNumber" value="${mortgage?.serialNumber}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">担保机构</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="guaranteeInstitution" id="guaranteeInstitution"  value="${mortgage?.guaranteeInstitution?.name}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">贷款类型</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="mortgageCategory" id="mortgageCategory"  value="${mortgage?.mortgageCategory?.name}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">

                <label class="col-md-2 control-label ">贷款方式</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="mortgagePattern" id="mortgagePattern"  value="${mortgage?.mortgagePattern?.name}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">抵押类型</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="mortgageType" id="mortgageType"  value="${mortgage?.mortgageType?.name}" readonly="true"/>
                </div>

            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">贷款状态</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="mortgageStatus" id="mortgageStatus"  value="${mortgage?.mortgageStatus?.name}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">是否不良</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="isNonPerformingLoan" id="isNonPerformingLoan"  value="${mortgage?.isNonPerformingLoan?'不良':'良'}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">放款金额</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="loansAmount" id="loansAmount"  value="${mortgage?.loansAmount}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">贷款余额</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="loansBalance" id="loansBalance"  value="${mortgage?.loansBalance}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">放款时间</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="startDate" id="startDate"  value="${mortgage?.startDate}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">受理网点</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="account" id="account"  value="${mortgage?.account?.name}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">放款银行</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="loansBankName" id="loansBankName"  value="${mortgage?.loansBankName}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">贷款时评估总价</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="loansEvaluateTotalPrice" id="loansEvaluateTotalPrice"  value="${mortgage?.loansEvaluateTotalPrice}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">

                <label class="col-md-2 control-label ">贷款时评估单价</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="loansEvaluatePrice" id="loansEvaluatePrice"  value="${mortgage?.loansEvaluatePrice}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">贷款到期日</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="endDate" id="endDate"  value="${mortgage?.endDate}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">已还期数</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="curHasPaymentTODuration" id="curHasPaymentTODuration"  value="${mortgage?.curHasPaymentTODuration}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">剩余还款总期数</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="remainTime" id="remainTime"  value="${mortgage?.remainTime}" readonly="true"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-md-2 control-label ">还款方式</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="curRepaymentMode" id="curRepaymentMode"  value="${mortgage?.curRepaymentMode?.name}" readonly="true"/>
                </div>

                <label class="col-md-2 control-label ">月还款金额</label>
                <div class="col-md-3">
                    <g:textField class="form-control m-b" name="repaymentDate" id="repaymentDate"  value="" readonly="true"/>
                </div>
            </div> -->

            <g:form action="update" resource="${this.riskWarning}">

                <g:textField class="form-control hidden" type="text" name="targetUri" id="targetUri" value="${params.targetUri}"/>

                <div class="form-group">
                    <label class="col-md-5 control-label ">计划开始时间</label>
                    <div class="col-md-3">
                        <g:datePicker class="form-control" name="startTime" value="${new Date()}" precision="minute" value="${this?.riskWarning?.startTime}"/>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-5 control-label ">计划结束时间</label>
                    <div class="col-md-3">
                        <g:datePicker class="form-control" name="endTime" value="${new Date()}" precision="minute" value="${this?.riskWarning?.endTime}"/>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-md-3 col-md-offset-6">
                        <g:submitButton class="btn btn-info" name="update" value="保存"/>
                    </div>
                </div>
            </g:form>
        </div>
    </div>
</div>

<g:javascript>
    $(function () {
        $('.datepicker').datepicker({
            language: 'zh-CN',
            format:"yyyy-mm-dd"
        });
        $('.input-group.date').datepicker({ });
        $('.input-daterange').datepicker({ });
    });
</g:javascript>
</body>
</html>
